/*
 * @copyright fxsen <br/>
 * @date 2022/4/14 16:42 <br/>
 * @email <a href="mailto:fxsen@foxmail.com">
 * @author fxsen
 */
package com.fxsen.commons.core.base.common.service;

import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 服务接口基础类
 * @author fxsen
 * @date 2022/4/14 16:42
 * @email <a href="mailto:fxsen@foxmail.com">
 */
public interface ICommonService<T> extends IService<T> {
    /**
     * 是否存在
     * @param fieldName 字段
     * @param value 值
     * @return {@link boolean}
     * @date 2022/3/30 17:59
     * @author fxsen <br/>
     * @email <a href="mailto:fxsen@foxmail.com">
     **/
    boolean isExist(String fieldName, Object value);
    /**
     * 通过pid查询
     * @param id
     * @return {@link List}
     * @date 2022/3/30 17:57
     * @author fxsen <br/>
     * @email <a href="mailto:fxsen@foxmail.com">
     **/
    List<T> getByPid(String id);
}
